package persistence;

import java.io.IOException;

import valueobjects.*;

public interface PersistenceManager {

	public void openForReading(String datenquelle) throws IOException;

	
	public void openForWriting(String datenquelle) throws IOException;
	
	
	public boolean close();
	
	
	///---Warenkorb---///
	
	public boolean speicherewk (Warenkorb wk) throws IOException;
	
	public Warenkorb ladeWarenkorb() throws IOException;


	///---BIER---///
	
	public boolean speichereArtikel(Artikel a) throws IOException;
	
	
	public Artikel ladeArtikel() throws IOException;


	///---MITARBEITER---///
	
	public boolean speichereMitarbeiter(Mitarbeiter m) throws IOException ;
	
	
	public Mitarbeiter ladeMitarbeiter() throws IOException;
	
	
	public boolean speichereMitLogFile(String s);
	
	
	public String ladeMitLogFile()  throws IOException ;
	
	
	///---KUNDE---///
	
	public boolean speichereKunde(Kunde k) throws IOException;

	
	public Kunde ladeKunde() throws IOException;

	
	public boolean speichereKunLogFile(String s);
	
	
	public String ladeKunLogFile()  throws IOException ;

	///---WarenBestandsLog---///
	
	
	public boolean speichereWarenlog(WrnBLog wb) throws IOException;

	
	public WrnBLog ladeWarenlog() throws IOException;

	
	public boolean speichereWrnLogFile(String s);
	
	
	public String ladeWrnLogFile()  throws IOException ;
}